package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.BaseMemberRuleDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 平台规则配置Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-12-16
 */
@Repository
public interface BaseMemberRuleRepository extends JpaRepository<BaseMemberRuleDO, Long>, JpaSpecificationExecutor<BaseMemberRuleDO> {
    List<BaseMemberRuleDO> findByRuleTypeAndStatus(Integer ruleType, Integer status);
}
